Conversation
…ance error handling
…animal_results function
…o full-image crops
…in Hugging Face Space demo
…sm for Hugging Face Space
xiu-cs
reviewed
May 29, 2026
xiu-cs
reviewed
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and fixes to the PRIMA demo, focusing on better progress reporting in the Gradio interface, improved OpenGL backend selection for rendering, consistent checkpoint naming, and enhanced checkpoint validation. It also updates documentation and example scripts to reflect these changes.
User experience and progress reporting:
progress_callbackmechanism in_collect_animal_results, which reports the current processing stage (e.g., detection, rendering, TTA) to the user. This makes long-running inferences more transparent and user-friendly. (app.py) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]Rendering and environment compatibility:
prima/utils/mesh_renderer.py,prima/utils/renderer.py) [1] [2]Checkpoint management and validation:
s3ckpt_inference.ckptthroughout the codebase, scripts, and documentation for consistency and to avoid confusion. (prima/utils/weights.py,demo.sh,demo_tta.sh,README.md) [1] [2] [3] [4] [5] [6]weights_onlyargument intorch.loadfor more robust and informative error handling. (prima/utils/weights.py)Documentation and examples:
README.md) [1] [2]app.py) [1] [2]eval.py)pyproject.toml)